//package com.waste.game.controller;
//
//import com.github.pagehelper.PageInfo;
//import com.waste.game.entity.GameListBean;
//import com.waste.game.service.GameListService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.*;
//
//@Slf4j
//@RestController
//@RequestMapping("/back/index")
//public class IndexBodyController {
//
//    @Autowired
//    private GameListService gameListService;
//
//    @PostMapping
//    public PageInfo<GameListBean> getIndexOne(Model model){
//        return gameListService.getListPage(1,12);
//    }
//
//    @PostMapping("/{pageNum}")
//    public PageInfo<GameListBean> getIndex(@PathVariable(value = "pageNum") Integer pageNum){
//        return gameListService.getListPage(pageNum ,12);
//    }
//}
